package com.sj.purchase.modules.purchase.domain;

import com.sj.purchase.modules.cost.domain.WarehouseEnum;
import org.springframework.data.jpa.domain.AbstractPersistable;

import javax.persistence.*;

/**
 * 库存价格
 * Created by icodebug on 17-5-22.
 */
@Entity
public class StockPrice extends AbstractPersistable<Long>{

    @ManyToOne
    private Purchase purchase;

    @Enumerated(EnumType.STRING)
    private WarehouseEnum warehouseEnum;//仓库

    private Integer nowStock=0;//现在库存

    private Integer passage=0; //在途数

    private Integer yesterdaySales=0;//昨日销量

    private Integer threeDaySales=0;//最近三天总销量

    private Integer notDeploy=0;//未配货

    private Integer notPending=0;//未审核




    public Purchase getPurchase() {
        return purchase;
    }

    public void setPurchase(Purchase purchase) {
        this.purchase = purchase;
    }

    public WarehouseEnum getWarehouseEnum() {
        return warehouseEnum;
    }

    public void setWarehouseEnum(WarehouseEnum warehouseEnum) {
        this.warehouseEnum = warehouseEnum;
    }

    public Integer getNowStock() {
        return nowStock;
    }

    public void setNowStock(Integer nowStock) {
        this.nowStock = nowStock;
    }

    public Integer getPassage() {
        return passage;
    }

    public void setPassage(Integer passage) {
        this.passage = passage;
    }

    public Integer getYesterdaySales() {
        return yesterdaySales;
    }

    public void setYesterdaySales(Integer yesterdaySales) {
        this.yesterdaySales = yesterdaySales;
    }

    public Integer getNotDeploy() {
        return notDeploy;
    }

    public void setNotDeploy(Integer notDeploy) {
        this.notDeploy = notDeploy;
    }

    public Integer getNotPending() {
        return notPending;
    }

    public void setNotPending(Integer notPending) {
        this.notPending = notPending;
    }

    public Integer getThreeDaySales() {
        return threeDaySales;
    }

    public void setThreeDaySales(Integer threeDaySales) {
        this.threeDaySales = threeDaySales;
    }
}
